13步:我们可以从 stage_list 中获取用户选择的索引值。

  • 点击 并拖入 Get Value at Index。将名称更改为 stage_image
  • 将列表名称更改为 stage_list
  • 将索引更改为 [stage_index]。确保变量在方括号内部。

    现在,stage_image 将根据用户输入询问对话框的索引数字,从列表中存储一个值。

    To navigate the page using the TAB key, first press ESC to exit the code editor.

    # THIS ACTIVITY IS IN PREVIEW ONLY MODE
    • Run Code
    • Submit Work
    • Next Activity
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)